package com.sky.zero.dict.controller;

import java.util.List;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import com.github.pagehelper.PageInfo;

import com.sky.zero.dict.entity.Dict;
import com.sky.zero.dict.entity.DictParam;
import com.sky.zero.dict.entity.DictVO;


//(替换成自己服务的注解)@XXServer(path = "/dict", contextId = "DictApi")
public interface DictApi {

	/** 查询列表(分页) **/
	@RequestMapping("/getDictPage")
	PageInfo<DictVO> getDictPage(@RequestBody DictParam param);

	/** 查询列表 **/
	@RequestMapping("/getDictList")
	List<DictVO> getDictList(@RequestBody DictParam param);

    /** 根据ID获取详情**/
	@RequestMapping("/getDictById")
	DictVO getDictById(@RequestParam("id") Integer id);

    /**新增**/
    @RequestMapping("/addDict")
    Integer addDict(@RequestBody Dict dict);

    /**批量新增**/
    @RequestMapping("/addBatchDict")
    Integer addBatchDict(@RequestBody List<Dict> dictList);

    /**编辑**/
    @RequestMapping("/editDict")
    Integer editDict(@RequestBody Dict dict);

    /**批量更新**/
    @RequestMapping("/editBatchDict")
    Integer editBatchDict(@RequestBody List<Dict> dictList);

    /** 根据ID删除**/
	@RequestMapping("/delDictById")
    Integer delDictById(@RequestParam("id") Integer id);

    /** 根据ID批量删除**/
	@RequestMapping("/delDictByIds")
    Integer delDictByIds(@RequestBody List<Integer> ids);

}